module top_module( 
    input [255:0] in,
    input [7:0] sel,
    output out );

    always @(*) begin
        for (int i = 0; i < $bits(in); i++) begin
            if (sel == i) out = in[i];
        end
    end

    // Select one bit from vector in[]. The bit being selected can be variable.
	//assign out = in[sel];

endmodule
